Writing a property value

Changing a property value can be done using the SetPropertyValue method. The following code sample shows how you would save a property value when using manual data binding from a property page. It saves the value entered in the TextBox control as the new value for the DrawingNumber property of the selected document.

Private Sub IAMExtensionPage_ApplyChanges(ByVal EditMode As PPEDITMODES)
    On Error GoTo error_handler
    
    Me.ValidateControls
    If (Not m_Designer Is Nothing) And IAMExtensionPage_Visible Then
        ' Todo
        ' Add your code here
        
        ' Save value for Drawing Number
        m_Designer.SetPropertyValue "", "DrawingNumber_BSTR", txtTextBox.Text
        m_Designer.ApplyChanges EditMode
    End If
    
    Exit Sub
error_handler:
    MsgBox caption & " ApplyChanges: " & Err.Description
End Sub

CurrentObject property

GetPropertyValue method

SetPropertyValue method

About accessing object properties

Accessing properties using the IASDocument interface

Accessing properties using the server object